package com.junzhiit.nengji.cms.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bainaeco.framework.util.AssertUtil;
import com.junzhiit.nengji.cms.service.FullReductionConditionService;
import com.junzhiit.nengji.cms.web.vo.ResultVO;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/full/reduction/condition")
public class FullReductionConditionController extends BaseController {

	@Autowired
	FullReductionConditionService fullReductionConditionService;
	
	@ApiOperation(value = "根据id删除满减活动条件")
	@RequestMapping(value="/{id}",method = RequestMethod.DELETE)
	public ResultVO deleteById(@PathVariable String id) {
		AssertUtil.notBlank(id, "id is required.");
		return fullReductionConditionService.delete(id);
	}
}
